import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCommonStore = defineStore('common', {
  state:()=>{
    return {
      token:null,
      labelList:[],
      currLabel:"",
    }
  },
  actions: {
   saveToken(token:any){
    this.token = token
   },
   saveLabelList(info:any){
    this.labelList = info;
   },
   saveCurrLabel(info:any){
    this.currLabel = info;
   }
  },
  persist: {
    paths: ['token'],
  }
})
